package com.winsdom.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 抄表任务表
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
@Data
@Accessors(chain = true)
@TableName("reading_task")
public class ReadingTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 任务生成日期（每月1号）
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate generateDate;

    /**
     * 需抄数量
     */
    private Integer needTotal;

    /**
     * 已抄数量
     */
    private Integer finishedTotal;

    /**
     * 抄表周期(目前为每月一次)
     */
    private String readingCycle;

    /**
     * 分类ID(楼盘)
     */
    private Integer categoryId;

    /**
     * 任务完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate completeTime;

    /**
     * 任务状态(0=未完成,1=已完成)
     */
    private Integer status;


}
